package com.platform.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.ApiRecruitmentMapper;
import com.platform.entity.RecruitmentVo;

/**
 * Service实现类
 *
 * @author czj
 * @email 729618941@qq.com
 * @date 2018-10-10 10:43:30
 */
@Service
public class ApiRecruitmentService {
    @Autowired
    private ApiRecruitmentMapper recruitmentDao;

    
    public RecruitmentVo queryObject(Integer id) {
        return recruitmentDao.queryObject(id);
    }

    
    public List<RecruitmentVo> queryList(Map<String, Object> map) {
        return recruitmentDao.queryList(map);
    }

    
    public int queryTotal(Map<String, Object> map) {
        return recruitmentDao.queryTotal(map);
    }

    
    public int save(RecruitmentVo recruitment) {
        return recruitmentDao.save(recruitment);
    }

    
    public int update(RecruitmentVo recruitment) {
        return recruitmentDao.update(recruitment);
    }

    
    public int delete(Integer id) {
        return recruitmentDao.delete(id);
    }

    
    public int deleteBatch(Integer[]ids) {
        return recruitmentDao.deleteBatch(ids);
    }
}
